-- GENERATED SPELL FOR [Orbaz Bloodbane] --


function spell0_29204(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(52374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29204', 606, 1)
end

function spell1_29204(pUnit, Event) --@Death Grip,n/a--
pUnit:FullCastSpellOnTarget(49576,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29204', 0, 1)
end

function spell2_29204(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(52372,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29204', 20000, 1)
end

function spell3_29204(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29204', 12000, 1)
end

function Sorts_29204(pUnit, Event)
local choix_sorts_29204 = math.random(0, 3)
if choix_sorts_29204 == 0 then
pUnit:RegisterEvent('spell0_29204', 1, 1)
end
if choix_sorts_29204 == 1 then
pUnit:RegisterEvent('spell1_29204', 1, 1)
end
if choix_sorts_29204 == 2 then
pUnit:RegisterEvent('spell2_29204', 1, 1)
end
if choix_sorts_29204 == 3 then
pUnit:RegisterEvent('spell3_29204', 1, 1)
end
end

function mob29204_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29204', math.random(1500, 3000), 1)
end

function mob29204_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29204_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29204_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29204, 1, 'mob29204_Action')
RegisterUnitEvent(29204, 2, 'mob29204_Leave')
RegisterUnitEvent(29204, 3, 'mob29204_Kill')
RegisterUnitEvent(29204, 4, 'mob29204_Die')
